<?php

/**

 * 分销设置

 * @author maniac

 */

namespace app\manage\controller;

use app\facade\Options;
use app\facade\Goods AS GoodsFacade;

class Distribution extends Base

{

    /**

     * 网站设置

     */

    public function index()

    {

        $info = Options::option('distribution_info');

        $info = $info ? unserialize($info) : [];
        $where = '';
        $limit = '';
        $order = '';
        $goods = GoodsFacade::goods($where, $limit,'',$order);//条件，分页，查询字段，排序

        return $this->fetch('', [

            'db' => $info,
            'goods' => $goods,

        ]);

    }

}

